{strip}
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/ddlevelsmenu_sidebar.css">
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/registration.css">
<script type="text/javascript" src="{$siteroot}/includes/js/menu.js"></script>
{/strip}

<section class="dash_left">
<!-- User Image Box Start -->
    <section class="user_img_box">
        <h5>{$userDetArray.first_name|ucfirst|truncate:6:""} {$userDetArray.last_name|ucfirst|truncate:1:""}</h5>
        {if $userDetArray.user_avatar}
            <img src="{$siteroot}/includes/image.php?width=130&amp;height=130&amp;image={$siteroot}/uploads/user/{$userDetArray.user_avatar}" title="User Name" alt="User Name"/>
        {else}
         	<img src="{$siteroot}/templates/default/images/upload/featredtrade_img3.jpg" width="130" height="130" title="User Name" alt="User Name" />   
         {/if}   
        <article><a href="{$siteroot}/myaccount/changephoto/">Change Profile Photo</a></article>
        
        <article style="padding:2px;color:#000">{if $getuserdet.user_type eq '4'} {$getuserdet.planname}{/if}</article>
        
        <article style="padding:2px;color:#000">{if $getuserdet.user_type eq '4'} {if $getuserdet.plannid neq '1'} Lead Balance ({$getuserdet.leads}) {else} Account balance: ${$getuserdet.planamount}{/if}{/if}</article>
        
    </section>
 <!-- User Image Box End -->
 <!-- Left Menu Box Start -->
    
		  
         
    <section class="dash_left_menu">
   

    	    <ul id="menu">
            {if $getuserdet.user_type eq '4'}
	        <li>
                <a href="javascript:;">Available Leads</a>
                <ul style="display:{if $mainmenu eq '8'}block{else}none{/if};">
                    <li><a href="{$siteroot}/leads/" {if $subactive eq 'leads'} class="active" {/if}>&raquo; &nbsp;Available Leads</a></li>
                </ul>
            </li>
            {/if}
          	<li>
                <a href="javascript:;">My Account</a>
                <ul style="display:{if $mainmenu eq '1'}block{else}none{/if};">
                    <li><a {if $smarty.session.user_type eq '3'} href="{$siteroot}/myaccount/" {else} href="{$siteroot}/profile/{$comapnyname}" {/if} {if $subactive eq 'myaccount'} class="active" {/if}>&raquo; &nbsp;View Profile</a></li>
                    <li><a href="{$siteroot}/myaccount/editprofile" {if $subactive eq 'editprofile'} class="active" {/if}>&raquo; &nbsp;Edit Profile</a></li>                   
                    <li><a href="{$siteroot}/myaccount/changepassword/" {if $subactive eq 'changepassword'} class="active" {/if}>&raquo; &nbsp;Change Password</a></li>
                     {if $smarty.session.user_type eq '4'}
                    <li><a href="{$siteroot}/myaccount/myuploadedphoto" {if $subactive eq 'myuploadedphoto'} class="active" {/if}>&raquo; &nbsp;My Work Photos</a></li>
                    {/if}
                </ul>
            </li>
            
            <li>
                <a href="javascript:;">My Messages</a>

                <ul style="display:{if $mainmenu eq '2'}block{else}none{/if};">
                    <li><a href="{$siteroot}/myaccount/mymessages/" {if $subactive eq 'mymessages'} class="active" {/if}>&raquo; &nbsp;Inbox ({$getuserdet.inboxcount})</a></li>
                    <li><a href="{$siteroot}/myaccount/mysentmessages/" {if $subactive eq 'mysentmessages'} class="active" {/if}>&raquo; &nbsp;Sent Item ({$getuserdet.sentcount})</a></li>
                    <li><a href="{$siteroot}/myaccount/message_reply/" {if $subactive eq 'message_reply'} class="active" {/if}>&raquo; &nbsp;Compose</a></li>
                </ul>
            </li>
            {if $smarty.session.user_type eq '4'}
            <li>
            	<a href="javascript:;">Manage Service & location</a>
                <ul style="display:{if $mainmenu eq '3'}block{else}none{/if};">
                    <li><a href="{$siteroot}/myaccount/myservicelocation/" {if $subactive eq 'myservicelocation'} class="active" {/if}>&raquo; &nbsp;My Service & location</a></li>                    
                    <!--<li><a href="{$siteroot}/myaccount/mytradecategory/" {if $subactive eq 'mytradecategory'} class="active" {/if}>&raquo; &nbsp;My Trade Categories</a></li>                    -->
                </ul>   
                
            </li>
            {/if}
            {if $smarty.session.user_type eq '4'}
            <li>
            	<a href="javascript:;">Manage Leads</a>
				<ul style="display:{if $mainmenu eq '4'}block{else}none{/if};">
                    <li><a href="{$siteroot}/leads/myleads/" {if $subactive eq 'myleads'} class="active" {/if}>&raquo; &nbsp;My Leads</a></li>                    
                </ul>   

            
            </li>
            {/if}
            {if $smarty.session.user_type eq '3'}
            <li>
            	<a href="javascript:;">Manage Jobs</a>
				<ul style="display:{if $mainmenu eq '4'}block{else}none{/if};">
                    <li><a href="{$siteroot}/jobs/myjobs/" {if $subactive eq 'myjobs'} class="active" {/if}>&raquo; &nbsp;My Jobs</a></li>                    
                </ul>   

            
            </li>
            {/if}            
            
            <li>
            	<a href="javascript:;">Manage Testimonials</a>
                 <ul style="display:{if $mainmenu eq '5'}block{else}none{/if};">
                    <li><a href="{$siteroot}/testimonials/mytestimonials/" {if $subactive eq 'testimonials'} class="active" {/if}>&raquo; &nbsp;My Testimonials</a></li>                    
                 </ul>               
            </li>
             {if $smarty.session.user_type eq '4'}
            <li>
            	<a href="javascript:;">Manage Ratings</a>
                <ul style="display:{if $mainmenu eq '6'}block{else}none{/if};">
                    <li><a href="{$siteroot}/rating/" {if $subactive eq 'rating'} class="active" {/if}>&raquo; &nbsp;My Ratings & Feedback</a></li>                    
                 </ul>                               
            </li>           
            <li>
            	<a href="javascript:;">Manage Payment History</a>
                
                <ul style="display:{if $mainmenu eq '7'}block{else}none{/if};">
                    <li><a href="{$siteroot}/payment/history/" {if $subactive eq 'mypaymenthistory'} class="active" {/if}>&raquo; &nbsp;My Payment History</a></li>                    
                </ul>   
            </li>
            {/if}
           </ul>
    </section>
<!-- Left Menu Box End -->
</section>